package com.zt.yongxinbao.service;

import com.zt.yongxinbao.dto.PolicyParam;
import com.zt.yongxinbao.entity.UserPolicy;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserPolicyService {
//    根据用户名查询保单
    List<PolicyParam> selectByUsername(String username);
//    根据id更新保单
    Boolean updateById(Integer id,Integer time);
//    新增保单
    Boolean insert(UserPolicy userPolicy);
//根据用户名查询已失效保单
    List<PolicyParam> selectUnvaildByUsername(String username);
//    根据用户名查询将失效保单
    List<PolicyParam> selectWillvaildByUsername(String username);
}
